<?php
include_once("../service/CategoryService.php");
/**
 * @author Minh Luan
 * @copyright 2012
 */
if(isset($_GET['n'])){
    $cat_id = $_GET['n'];
    $categoryInfor = mysql_fetch_array(getCategory($cat_id));
    //Image Not Chosen
        if($categoryInfor["CAT_IMG_URL"] != ''){
            updateCategoryImageUrl($cat_id, "");
            unlink("../images/cat/CAT_".$cat_id.".jpg");
        }
    echo "<script>location.href='../admin/category-detail.php?do=view&n=".$cat_id."&msg=1'</script>";
}

?>